% 读取图像
image = imread('pic_original.png');
gray_image = rgb2gray(image);

% 对比度增强
enhanced_image = histeq(gray_image);

% 高斯模糊
sigma = 2;
smoothed_image = imgaussfilt(enhanced_image, sigma);

% 保存预处理图像
imwrite(smoothed_image, 'preprocessed_image.png');
